﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ChiTietGioHang.ascx.cs" Inherits="Control_ChiTietGioHang" %>
<style type="text/css">
    .style1
    {
        width: 600px;
    }
    .style2
    {
        width: 100%;
    }
    .style3
    {
        height: 30px;
    }
    .style4
    {
        width: 300px;
    }
</style>

<table align="center" class="style1">
    <tr>
        <td colspan="2" align="center" bgcolor="#0000CC" class="style3">
            &nbsp;<asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="X-Large" 
                ForeColor="White" Text="Giỏ Hàng Của Bạn "></asp:Label>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:Panel ID="Panel" runat="server">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="MaSP" onrowdeleting="GridView1_RowDeleting">
                    <Columns>
                        <asp:BoundField HeaderText="Mã Sản Phẩm " DataField="MaSP" />
                        <asp:BoundField HeaderText="Tên Sản Phẩm" DataField="TenSP" />
                        <asp:BoundField HeaderText="Giá Sản Phẩm " DataField="Gia" />
                        <asp:TemplateField HeaderText="Số Lượng ">
                            <ItemTemplate>
                                <asp:TextBox ID="txtSoLuong" runat="server" Height="21px" 
                                    ontextchanged="txtSoLuong_TextChanged" Width="86px"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="Thành Tiền" DataField="ThanhTien" />
                        <asp:CommandField HeaderText="Chọn Xóa" ShowDeleteButton="True" 
                            DeleteText="Xóa" />
                    </Columns>
                </asp:GridView>
            </asp:Panel>
            
        </td>
    </tr>
    <tr>
        <td align="right" width="300px">
            <asp:Label ID="Label1" runat="server" Text="Tổng Tiền: "></asp:Label>
        </td>
        <td class="style4">
            <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
        </td>
    </tr>
    <tr>
        <td align="right" width="300px">
            <asp:Button ID="btnMuaTiep" runat="server" Text="Tiếp Tục Mua Hàng" />
        </td>
        <td class="style4">
            <asp:Button ID="btnThanhToan" runat="server" Text="Thanh Toán" 
                onclick="btnThanhToan_Click" />
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2">
            <asp:Panel ID="Panel1" runat="server">
                <table cellpadding="0" cellspacing="0" class="style2">
                    <tr>
                        <td align="left">
                            &nbsp;&nbsp;&nbsp; Để mua hàng bạn&nbsp;
                            <asp:HyperLink ID="HyperLink1" runat="server" 
                                NavigateUrl="~/TrangChu.aspx?dangky=dangkythanhvien">Đăng Ký</asp:HyperLink>
                            &nbsp; hoặc&nbsp;
                            <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/TrangChu.aspx">Đăng Nhập</asp:HyperLink>
                            &nbsp; tại đây ! Cảm ơn!
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </asp:Panel>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2">
                            <asp:Panel ID="pnKhongDuTaiKhoan" runat="server" 
                Visible="False">
                                <table align="center" cellpadding="0" cellspacing="0" class="style2">
                                    <tr>
                                        <td>
                                            <table align="center" cellpadding="2" class="style2">
                                                <tr>
                                                    <td align="left">
                                                        &nbsp; Tài khoản của bạn không đủ để thanh toán &nbsp;<asp:HyperLink 
                                                            ID="HyperLink4" runat="server" 
                                                            NavigateUrl="~/TrangChu.aspx?noptien=NopTaiKhoan">Nộp Thêm Tài Khoản </asp:HyperLink>
                                                        &nbsp;hay &nbsp;<asp:HyperLink ID="HyperLink3" 
                                                            runat="server" 
                                                            NavigateUrl="~/TrangChu.aspx?GioHang=GioHang">Bỏ Bớt Sản Phẩm</asp:HyperLink>
                                                        !</td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
        </td>
    </tr>
</table>

